<!doctype html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>微服务架构与 Spring Cloud Alibaba</title>
    <link href="https://cdn.staticfile.org/font-awesome/6.4.0/css/all.min.css" rel="stylesheet">
    <link href="https://cdn.staticfile.org/tailwindcss/2.2.19/tailwind.min.css" rel="stylesheet">
    <link href="https://fonts.googleapis.com/css2?family=Noto+Serif+SC:wght@400;500;600;700&family=Noto+Sans+SC:wght@300;400;500;700&display=swap" rel="stylesheet">
    <script src="https://cdn.jsdelivr.net/npm/mermaid@latest/dist/mermaid.min.js"></script>
    <style>
        body {
            font-family: 'Noto Sans SC', Tahoma, Arial, Roboto, "Droid Sans", "Helvetica Neue", "Droid Sans Fallback", "Heiti SC", "Hiragino Sans GB", Simsun, sans-serif;
            background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
            min-height: 100vh;
        }
        
        /* 首字下沉效果 */
        .drop-cap::first-letter {
            float: left;
            font-size: 4rem;
            line-height: 3rem;
            padding-right: 0.5rem;
            margin-top: 0.5rem;
            font-weight: 700;
            color: #4f46e5;
        }
        
        /* 代码块美化 */
        pre {
            background: #1e293b;
            color: #e2e8f0;
            border-radius: 0.75rem;
            padding: 1.5rem;
            overflow-x: auto;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            position: relative;
        }
        
        pre::before {
            content: attr(data-language);
            position: absolute;
            top: 0.5rem;
            right: 1rem;
            font-size: 0.75rem;
            color: #64748b;
            text-transform: uppercase;
        }
        
        /* 引用块样式 */
        .custom-quote {
            border-left: 4px solid #4f46e5;
            background: linear-gradient(to right, #f0f4ff, transparent);
            padding: 1.5rem 2rem;
            margin: 2rem 0;
            border-radius: 0 0.5rem 0.5rem 0;
            position: relative;
        }
        
        .custom-quote::before {
            content: '\f10d';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: -0.5rem;
            top: -0.5rem;
            font-size: 2rem;
            color: #4f46e5;
            background: white;
            padding: 0.25rem;
            border-radius: 50%;
        }
        
        /* 卡片悬停效果 */
        .hover-card {
            transition: all 0.3s ease;
        }
        
        .hover-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        
        /* 滚动进度条 */
        .progress-bar {
            position: fixed;
            top: 0;
            left: 0;
            height: 4px;
            background: linear-gradient(to right, #4f46e5, #7c3aed);
            z-index: 1000;
            transition: width 0.3s ease;
        }
        
        /* 章节标题装饰 */
        .section-title {
            position: relative;
            padding-bottom: 1rem;
        }
        
        .section-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 60px;
            height: 3px;
            background: linear-gradient(to right, #4f46e5, #7c3aed);
            border-radius: 2px;
        }
        
        /* 图片容器 */
        .image-container {
            border-radius: 0.75rem;
            overflow: hidden;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
            margin: 2rem 0;
        }
        
        .image-container img {
            width: 100%;
            height: auto;
            display: block;
        }
        
        /* 列表样式 */
        ul li {
            position: relative;
            padding-left: 2rem;
            margin-bottom: 0.75rem;
        }
        
        ul li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: #4f46e5;
        }
        
        /* Mermaid 图表容器 */
        .mermaid-container {
            background: white;
            border-radius: 0.75rem;
            padding: 2rem;
            margin: 2rem 0;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        }
    </style>
</head>
<body>
    <!-- 滚动进度条 -->
    <div class="progress-bar" id="progressBar"></div>
    
    <!-- Hero 区域 -->
    <section class="relative overflow-hidden bg-gradient-to-br from-indigo-600 via-purple-600 to-pink-500 text-white">
        <div class="absolute inset-0 bg-black opacity-20"></div>
        <div class="relative container mx-auto px-6 py-24 text-center">
            <h1 class="text-5xl md:text-7xl font-bold mb-6 animate-pulse">
                微服务架构与 Spring Cloud Alibaba
            </h1>
            <p class="text-xl md:text-2xl mb-8 opacity-90">
                构建高可用、可扩展的分布式系统解决方案
            </p>
            <div class="flex justify-center space-x-6">
                <div class="flex items-center">
                    <i class="fas fa-cloud text-3xl mr-2"></i>
                    <span>云原生架构</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-network-wired text-3xl mr-2"></i>
                    <span>服务网格</span>
                </div>
                <div class="flex items-center">
                    <i class="fas fa-shield-alt text-3xl mr-2"></i>
                    <span>高可用保障</span>
                </div>
            </div>
        </div>
        <div class="absolute bottom-0 left-0 right-0">
            <svg viewBox="0 0 1440 120" fill="none" xmlns="http://www.w3.org/2000/svg">
                <path d="M0 120L60 105C120 90 240 60 360 45C480 30 600 30 720 37.5C840 45 960 60 1080 67.5C1200 75 1320 75 1380 75L1440 75V120H1380C1320 120 1200 120 1080 120C960 120 840 120 720 120C600 120 480 120 360 120C240 120 120 120 60 120H0Z" fill="white"/>
            </svg>
        </div>
    </section>
    
    <!-- 主要内容区域 -->
    <main class="container mx-auto px-6 py-12 max-w-6xl">
        
        <!-- 微服务架构思想 -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 text-gray-800 section-title">
                    <i class="fas fa-lightbulb text-yellow-500 mr-3"></i>
                    微服务架构思想
                </h2>
                
                <div class="prose prose-lg max-w-none">
                    <p class="drop-cap text-gray-700 leading-relaxed mb-6">
                        微服务架构的概念由马丁·福勒（Martin Fowler）提出，它代表了一种全新的软件架构范式。这种架构风格提倡将单一应用程序划分成一组小的服务，每个服务运行在独立的进程中，服务之间通过轻量级的通信机制互相协调配合。
                    </p>
                    
                    <div class="custom-quote">
                        <p class="text-gray-700">
                            虽然目前业界对微服务并没有统一的标准定义，但其核心理念是将复杂的单体应用进行细粒度的划分，每个拆分出来的服务都能够独立部署、独立扩展、独立维护。
                        </p>
                    </div>
                    
                    <div class="grid md:grid-cols-2 gap-6 mt-8">
                        <div class="bg-gradient-to-br from-blue-50 to-indigo-100 p-6 rounded-xl">
                            <h4 class="font-semibold text-lg mb-3 text-indigo-800">
                                <i class="fas fa-cube mr-2"></i>核心特征
                            </h4>
                            <ul class="space-y-2 text-gray-700">
                                <li>服务独立运行在各自进程中</li>
                                <li>采用轻量级通信机制（HTTP/RPC）</li>
                                <li>围绕业务功能构建服务</li>
                                <li>支持多语言技术栈</li>
                            </ul>
                        </div>
                        
                        <div class="bg-gradient-to-br from-purple-50 to-pink-100 p-6 rounded-xl">
                            <h4 class="font-semibold text-lg mb-3 text-purple-800">
                                <i class="fas fa-cogs mr-2"></i>架构优势
                            </h4>
                            <ul class="space-y-2 text-gray-700">
                                <li>服务间低耦合高内聚</li>
                                <li>独立部署与扩展</li>
                                <li>技术选型灵活</li>
                                <li>故障隔离能力强</li>
                            </ul>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        
        <!-- Spring Cloud Alibaba 介绍 -->
        <section class="mb-16">
            <div class="bg-white rounded-2xl shadow-xl p-8 hover-card">
                <h2 class="text-3xl font-bold mb-6 text-gray-800 section-title">
                    <i class="fas fa-cloud text-blue-500 mr-3"></i>
                    Spring Cloud Alibaba 介绍
                </h2>
                
                <div class="mb-8">
                    <h3 class="text-2xl font-semibold mb-4 text-gray-700">为什么选择 Spring Cloud Alibaba？</h3>
                    <p class="text-gray-600 leading-relaxed mb-4">
                        随着 Spring Cloud Netflix 进入维护模式，业界急需一个能够持续更新、功能完善的微服务解决方案。Spring Cloud Alibaba 应运而生，它不仅继承了 Spring Cloud 的优秀设计理念，还融入了阿里巴巴在大规模分布式系统中的实践经验。
                    </p>
                </div>
                
                <!-- 组件架构图 -->
                <div class="mermaid-container">
                    <div class="mermaid">
                        graph TB
                            subgraph "Spring Cloud Alibaba 生态"
                                A[Spring Cloud Alibaba] --> B[开源组件]
                                A --> C[商业组件]
                                A --> D[集成组件]
                                
                                B --> B1[Nacos<br/>服务发现与配置]
                                B --> B2[Sentinel<br/>流量控制]
                                B --> B3[Seata<br/>分布式事务]
                                B --> B4[RocketMQ<br/>消息队列]
                                
                                C --> C1[Alibaba Cloud OSS]
                                C --> C2[Alibaba Cloud SMS]
                                
                                D --> D1[OpenFeign]
                                D --> D2[Gateway]
                                D --> D3[Ribbon]
                            end
                            
                            style A fill:#4f46e5,stroke:#333,stroke-width:2px,color:#fff
                            style B fill:#10b981,stroke:#333,stroke-width:2px,color:#fff
                            style C fill:#f59e0b,stroke:#333,stroke-width:2px,color:#fff
                            style D fill:#ef4444,stroke:#333,stroke-width:2px,color:#fff
                    </div>
                </div>
                
                <!-- 主要功能卡片 -->
                <div class="grid md:grid-cols-3 gap-6 mt-8">
                    <div class="bg-gradient-to-br from-green-400 to-blue-500 p-6 rounded-xl text-white hover-card">
                        <i class="fas fa-server text-4xl mb-4"></i>
                        <h4 class="font-bold text-xl mb-2">服务注册与发现</h4>
                        <p class="text-sm opacity-90">基于 Nacos 实现服务的自动注册与发现，支持健康检查</p>
                    </div>
                    
                    <div class="bg-gradient-to-br from-purple-400 to-pink-500 p-6 rounded-xl text-white hover-card">
                        <i class="fas fa-shield-alt text-4xl mb-4"></i>
                        <h4 class="font-bold text-xl mb-2">服务限流降级</h4>
                        <p class="text-sm opacity-90">通过 Sentinel 实现流量控制、熔断降级，保护服务稳定性</p>
                    </div>
                    
                    <div class="bg-gradient-to-br from-yellow-400